/ Assembly List / LJCNetCommon / CodeTokenizer / IsModifier

Namespace - LJCNetCommon


Parameters
text - The text value.
firstPass - The first pass for common values.

Returns

True if a modifier, otherwise false.

Syntax

C#
public Boolean IsModifier(String text, Boolean firstPass = False)

Check if the text is a Modifier. (E)

Example

C#
using LJCNetCommon;

var tokenizer = new CodeTokenizer();
string text = " private List<string> list;"
tokenizer.SetTokens(text);
short tokenIndex = 0;
string token = tokenizer.GetToken(tokenIndex);

int prefixCount = 0;
string stripToken = tokenizer.StripQualifier(token, ref prefixCount);
bool isModifier = tokenizer.IsModifier(stripToken);
// Value isModifier = true.

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.